﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;


namespace KunURP.Editor
{
    public class KunSpaceDecorator : KunSubDrawer
    {
        public float Space { get; set; }
        public KunSpaceDecorator(string group, float space) : base(group)
        {
            this.Space = space;
        }

        public override void DrawShaderProperty(Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor)
        {
            var rect = EditorGUILayout.GetControlRect(true, this.Space);
            EditorGUI.LabelField(rect, new GUIContent(""));
        }
    }
}
